#ifndef WEB_H
#define WEB_H

#include <QWidget>
#include "jwidget/jdialog.h"
#include <QUrl>
#include "InputMethod/inputmethod.h"

#include <QNetworkReply>

class QLineEdit;
class QWebView;

class Web : public JDialog
{
    Q_OBJECT
public:
    explicit Web(QWidget *parent = 0);
	~Web();
    InputMethod *im;
signals:

public slots:

private slots:
    void slotGoBtnClicked();
    void slotLinkClicked(QUrl url);
    void slotCheckLoad(bool isLoad);
    void slotUrlChanged(QUrl url);
    void createImConnect(QString ObjName);
    void slotFinished();
    void slotreadyRead();

private:
    QLineEdit *m_pUrlEdit;
    QWebView *m_pWebView;

    QNetworkAccessManager *m_manager = NULL;
    QNetworkRequest *m_request = NULL;
    QNetworkReply *m_reply = NULL;
};

#endif // WEB_H
